package com.xiaojie.controller;





import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.Date;
import java.util.Map;

/**
 * @ClassName DemoController
 * @Author 廖杰
 * @Date 2021/5/30 12:03
 **/
@Controller
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    private IDemoService iDemoService;


    @RequestMapping("/query")
    @Security({"admin", "张三"})
    public String query(HttpServletRequest request, HttpServletResponse response, String username) {
        return iDemoService.get(username);
    }

}
